/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    background: transparent;
    backdrop-filter: blur(20px);
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: rgba(26, 32, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 191, 255, 0.3), transparent);
    animation: sidebarGlow 3s ease-in-out infinite;
}

@keyframes sidebarGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.brand {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.brand-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    opacity: 0.7;
    filter: blur(12px);
    z-index: -1;
}

.brand-icon i {
    font-size: 24px;
    color: white;
}

.brand h1 {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #00bfff, transparent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-item:hover {
    background: rgba(0, 191, 255, 0.1);
    color: white;
    transform: translateX(8px);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 128, 255, 0.1) 100%);
    color: #00bfff;
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.2);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    margin-right: 16px;
    font-size: 18px;
    width: 18px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    overflow-y: auto;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 128, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tab-content {
    display: none;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.page-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #00bfff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* 首页卡片 */
.welcome-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(0, 128, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.4);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.3);
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #00bfff, #0080ff);
    opacity: 0.3;
    filter: blur(8px);
    z-index: -1;
}

.card-icon i {
    font-size: 32px;
    color: white;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: white;
    font-weight: 700;
}

.card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.4);
}

.btn-install, .btn-execute {
    background: linear-gradient(135deg, #00d4aa 0%, #00a693 100%);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.btn-install:hover, .btn-execute:hover {
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #7474ff 0%, #5e5eff 100%);
    box-shadow: 0 4px 20px rgba(116, 116, 255, 0.3);
}

.btn-save:hover {
    box-shadow: 0 8px 30px rgba(116, 116, 255, 0.4);
}

.btn-clear {
    background: linear-gradient(135deg, #ff6b7a 0%, #ff5577 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 122, 0.3);
}

.btn-clear:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 122, 0.4);
}

/* 状态面板 */
.status-panel {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 191, 255, 0.1);
    position: relative;
}

.status-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, rgba(0, 128, 255, 0.02) 100%);
    border-radius: 16px;
    opacity: 0.5;
}

.status-panel h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.status-icon {
    font-size: 24px;
    margin-right: 15px;
}

.status-icon.success {
    color: #4ecdc4;
}

.status-label {
    font-weight: 500;
    margin-right: 10px;
}

.status-value {
    color: #4ecdc4;
    font-weight: 600;
}

/* 设置页面 */
.setup-container {
    max-width: 800px;
    margin: 0 auto;
}

.setup-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.setup-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.step-header h3 {
    font-size: 24px;
    color: white;
    font-weight: 600;
}

.step-content p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8a8a8a;
    font-size: 14px;
}

.status-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.status-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* 任务页面 */
.task-container {
    max-width: 1200px;
    margin: 0 auto;
}

.task-input-section,
.task-output-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.task-input-section h3,
.task-output-section h3 {
    font-size: 24px;
    margin-bottom: 20px;

- weight: 600;
    color: white;
    font-weight: 600;
}

#task-input {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

#task-input:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

#task-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.task-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.output-container {
    min-height: 300px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #8a8a8a;
    text-align: center;
}

.output-placeholder i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #4ecdc4;
}

.task-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4ecdc4;
    margin-top: 20px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

/* 历史页面 */
.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-placeholder {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
}

.history-placeholder i {
    font-size: 64px;
    color: #4ecdc4;
    margin-bottom: 20px;
}

.history-placeholder h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.history-placeholder p {
    color: #8a8a8a;
    font-size: 16px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 20px;
    }
    
    .welcome-cards {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .nav-item {
        white-space: nowrap;
    }
    
    .task-controls {
        flex-direction: column;
    }
    
    .input-group {
        flex-direction: column;
    }
}

/* 滚动条样式 */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 动画入场效果 */
.tab-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 特殊效果 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

